const schemas = {
  "getListResult": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "totalDataCount": {
            "type": "number",
            "description": "总记录数"
          },
          "results": {
            "type": "array",
            "description": "结果基础信息列表",
            "items": {
              "type": "object",
              "description": "",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "结果ID，对应Mongo主键"
                },
                "startTime": {
                  "type": "string",
                  "description": "测试开始时间"
                },
                "endTime": {
                  "type": "string",
                  "description": "测试结束时间"
                },
                "passRate": {
                  "type": "string",
                  "description": "通过率"
                }
              },
              "required": [
                "id",
                "startTime",
                "endTime",
                "passRate"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "totalDataCount",
          "results"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getTaskResult": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "startTime": {
            "type": "string",
            "description": "任务发起时间"
          },
          "endTime": {
            "type": "string",
            "description": "任务结束时间"
          },
          "passRate": {
            "type": "number",
            "description": "通过率"
          },
          "caseResults": {
            "type": "array",
            "description": "测试结果数据统计",
            "items": {
              "type": "object",
              "description": "",
              "properties": {
                "caseId": {
                  "type": "number",
                  "description": "测试用例ID"
                },
                "caseName": {
                  "type": "string",
                  "description": "测试用例名称"
                },
                "successRate": {
                  "type": "number",
                  "description": "成功率"
                },
                "result": {
                  "type": "string",
                  "description": "用例测试结果，可取值：OK、NOK"
                }
              },
              "required": [
                "caseId",
                "caseName"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "startTime",
          "endTime",
          "passRate",
          "caseResults"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteTaskResult": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
